<span title="{{icon.title}}" ng-switch="icon.type">
  <i ng-switch-when="icon" class="{{icon.src}}"></i>
  <img ng-switch-when="img" ng-src="{{icon.src}}">
</span>
